<?php
namespace controllers\v1_0;

use ff\base\AuthController;
use ff\view\template;
use models\usermodel;

/**
 *
 * @name 用户相关  用于用户登陆的相关接口
 *
 */

class userController extends AuthController
{

    public $content = '';
    public $parsefile = '';

    /**
     *
     * @name  用户登陆 登陆相关的
     * @method POST/JSON
     * @return JSON
     * @param string account yes 账号
     * @param string[1,2] password yes 密码
     * @var int status 状态码 (成功 1 ;失败 0;)
     * @var string msg 状态信息
     * @var string memberdata
     * @other 本接口附带登陆COOKIE
     * @example
     * [JSON](success:{"status":1,"data":{"face":"63800205.jpg","name":"asd12","province":"266","city":"267","gender":"1","birthday":"1367401462","username":"admin"}})
     * @author haierspi
     *
     */
    public function actionLogin()
    {

        
        return ['code' => 1];
    }

    /**
     *
     * @name  用户注销
     * @method POST/JSON
     * @return JSON
     * @param string account yes 账号
     * @param string[1,2] password yes 密码
     * @var int status 状态码 (成功 1 ;失败 0;)
     * @var string msg 状态信息
     * @other 本接口附带登陆COOKIE
     * @example
     * [JSON](success:{"status":2,"data":{"face":"63800205.jpg","name":"asd12","province":"266","city":"267","gender":"1","birthday":"1367401462","username":"admin"}})
     * @author haierspi
     *
     */
    public function actionLogout($get, $post, $type)
    {
        return ['status' => 1];
    }
}
